local limus = fk.CreateSkill {
  name = "lingling__limus",
}

Fk:loadTranslationTable{
  ["lingling__limus"] = "立木",
  [":lingling__limus"] = "出牌阶段，你可以将一张♣牌当【兵粮寸断】对你使用，然后你摸两张牌，加1点体力上限并回复1点体力（至多加至6）。",

  ["#lingling__limus"] = "立木：将一张♣牌当【兵粮寸断】对你使用，摸两张牌，加1点体力上限并回复1点体力",
}

limus:addEffect("active", {
  anim_type = "control",
  prompt = "#lingling__limus",
  card_num = 1,
  target_num = 0,
  can_use = Util.TrueFunc,
  card_filter = function(self, player, to_select, selected)
    local card = Fk:getCardById(to_select)
    return #selected == 0 and card.suit == Card.Club and
      not player:isProhibited(player, Fk:cloneCard("supply_shortage", card.suit, card.number))
  end,
  on_use = function(self, room, effect)
    local player = effect.from
    room:useVirtualCard("supply_shortage", effect.cards, player, player, limus.name, true)
    if player.dead then return end
    player:drawCards(2, limus.name)
    if player.dead then return end
    if player.maxHp < 6 then
      room:changeMaxHp(player, 1)
      if player.dead then return end
    end
    room:recover{
      who = player,
      num = 1,
      recoverBy = player,
      skillName = limus.name,
    }
  end,
})

return limus
